home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / script / ircprimer < prev    next >
Encoding:
Text File  |  2002-10-28  |  2.5 KB  |  86 lines

  1. # Sample .ircrc script, from the IRCprimer v1.1
  2. # -------------------------------------------------------------------
  3. #    IRCII sample configuration file  (~/.ircrc)  (Nicolas Pioch)
  4. # -------------------------------------------------------------------
  5. # The aim of this file is to shorten all useful commands to 1 letter.
  6.  
  7. ^set DISPLAY off
  8. set NOVICE off
  9. set INPUT_ALIASES off
  10. set AUTO_WHOWAS on
  11. set SHOW_CHANNEL_NAMES on
  12. set SHOW_AWAY_ONCE on
  13.  
  14.  
  15. # Speeds up ircII display 2 times
  16. set SCROLL_LINES 2
  17.  
  18.  
  19. # Put Hack notices down under
  20. on ^SERVER_NOTICE "% \*\*\* Notice -- Hack: *" set status_user Hack: $5-
  21.  
  22.  
  23. # do something logical with kill notices.
  24. on ^server_notice "% * Notice -- Received KILL*" hook KILL $8 $10 $12 $13-
  25. on hook "KILL % %.% *" echo ### server KILL for $1 by $2
  26. on hook "KILL % % *" echo ### KILL for $1 by $2 \($4-\)
  27.  
  28.  
  29.  
  30. # Function to strip the less significant part of an internet hostname
  31. alias userdomain @ function_return = before(@ $0) ## [@] ## after(. $0)
  32.  
  33. # Who is that ?
  34. on ^msg * echo *$0!$userdomain($userhost())* $1-
  35.  
  36.  
  37.  
  38. # /w [<nickname>]                        get info on someone
  39. # /q [<nickname>]                        query someone
  40. # /m  <nickname> <text>                  send a message
  41. # /n  <nickname> <text>                  send a notice
  42. # /r <text>                              reply to last message I got
  43. # /a <text>                              followup on my last message
  44.  
  45. alias w whois
  46. alias q query
  47. alias m msg
  48. alias n notice
  49. alias r msg $,
  50. alias a msg $.
  51.  
  52. # /j <channel>                           join a channel
  53. # /l <channel>                           list people in a channel
  54. # /ll                                    list in the current channel
  55. # /i <nickname> [<channel>]              invite someone
  56. # /hop                                   leave the current channel
  57.  
  58. alias j join
  59. alias l who
  60. alias ll who *
  61. alias i invite
  62. alias hop part *
  63.  
  64. # /o <nickname> [<nickname> <nickname>]  give channel op status
  65. # /d <nickname> [<nickname> <nickname>]  remove channel op status
  66. # /k <nickname>                          kick someone
  67. # /mo [+|-]<modechars>                   change current channel mode
  68.  
  69. alias o fe ($*) x y z {mode * +ooo $x $y $z}
  70. alias d fe ($*) x y z {mode * -ooo $x $y $z}
  71. alias k for x in ($*) {kick * $x}
  72. alias mo mode *
  73.  
  74. # the "wrong person" alias! /oops <nickname> to resend message to
  75. alias oops {
  76.     @ _whoops = B
  77.         msg $. Whooops! Please ignore, that wasn't meant for you.
  78.         msg $0 $_whoops
  79. }
  80.  
  81. alias unset set -$*
  82. alias unalias alias -$*
  83. ^set DISPLAY on
  84.  
  85. # -------------------------------------------------------------------
  86.